Revert 'Insert an LRM, to prevent -20 to come out as 20- in RTL'
authorBenjamin Otte <otte@redhat.com>
Sat, 25 Jun 2011 17:49:37 +0000 (19:49 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2011 20:08:09 +0000 (16:08 -0400)
Correct text direction for printing of doubles should be (and is) done
by printf() and friend and not enforced by GtkScale.

This reverts commit 5eb2aac9474e1e8d035af1cbb4bc6756539af335

https://bugzilla.gnome.org/show_bug.cgi?id=322571

gtk/gtkscale.c

index 6969741f29472188ff4b7c5c1603fccb51d0cf0a..042722e2a06af8dee5a187387ca21774c576a1ae 100644 (file)
@@ -1334,8 +1334,7 @@ _gtk_scale_format_value (GtkScale *scale,
   if (fmt)
     return fmt;
   else
-    /* insert a LRM, to prevent -20 to come out as 20- in RTL locales */
-    return g_strdup_printf ("\342\200\216%0.*f", priv->digits, value);
+    return g_strdup_printf ("%0.*f", priv->digits, value);
 }
 
 static void